package com.health.patient.server.controller;

import com.health.common.core.domain.R;
import com.health.health.common.dto.PmsConsultationRecordDto;
import com.health.patient.server.service.ConsultationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consultation")
public class ConsultationController {

    @Autowired
    private ConsultationService consultationService;

    /**
     * 添加问诊记录
     * @param recordDto
     * @return ybz
     */
    @RequestMapping("/addConsultation")
    public R addConsultation(@RequestBody PmsConsultationRecordDto recordDto){
        return consultationService.addConsultation(recordDto);
    }
}
